#ifndef _FILEUTIL_H_
#define _FILEUTIL_H_

#include "netfwd.h"

#pragma once

class FileUtil
{
public:
    typedef enum{ E_CRT_TIME, E_MOD_TIME, E_ACC_TIME } E_FAGE;

    static int32_t is_normal_file( const char * name );

    static int32_t is_dir( const char * name );

    static int32_t file_exist( const char * file );

    static int32_t file_size( const char * file );

    static time_t file_age( const char * file, E_FAGE age_type );

    static int16_t file_mode( const char * file );
};

#endif // _FILEUTIL_H_

